<script language="javascript">
var xmlHttp

function showKab(str)
{
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
	  {
	  alert ("Your browser does not support AJAX!");
	  return;
	  }
	var url="<?php echo site_url().'account/ajax_showKab'?>";
	
	url=url+"/"+str;
	//url=url+"&sid="+Math.random();
	//alert(url);

	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged()
{
if (xmlHttp.readyState==4)
{
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
//alert(document.getElementById("txtHint").innerHTML);
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
</script> 
<div class="crumb_nav">
	<a href="<?php echo base_url()?>">Home</a> | Register
</div>
<div class="title"><span class="title_icon"><img src="<?php echo base_url()?>assets/images/cart.gif" alt="" title="" /></span>Register</div>
<div class="feat_prod_box_details">
	<p class="details">
	Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud.
	</p>
	<div class="contact_form">
		<div class="form_subtitle">create new account</div>
		<form action="" method="post" onsubmit="return check();">
			<div class="form_row">
				<label class="contact"><strong>Nama:</strong></label>
				<?php echo form_error('nama', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="nama" value="<?php echo set_value('nama'); ?>">
			</div> 
			
			<div class="form_row">
				<label class="contact"><strong>Telepon:</strong></label>
				<?php echo form_error('telp', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="telp" value="<?php echo set_value('telp'); ?>">
			</div>

			<div class="form_row">
				<label class="contact"><strong>Mobile Phone/HP:</strong></label>
				<?php echo form_error('hp', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="hp" value="<?php echo set_value('hp'); ?>">
			</div>
			
			<div class="form_row">
				<label class="contact"><strong>Email:</strong></label>
				<?php echo form_error('email', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="email" value="<?php echo set_value('email'); ?>">
			</div>
			
			<div class="form_row">
				<label class="contact"><strong>Alamat Pengiriman:</strong></label>
				<?php echo form_error('alamat_kirim', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="alamat_kirim" value="<?php echo set_value('alamat_kirim'); ?>">
			</div> 
			
			<div class="form_row">
				<label class="contact"><strong>Propinsi:</strong></label>
				<?php echo form_error('province_id', '<div class="error">', '</div>'); ?>
				<?php echo provDropdown('content')?>
			</div> 

			<div  class="form_row">
				<label class="contact"><strong>Kabupaten:</strong></label>
				<?php echo form_error('kab_id', '<div class="error">', '</div>'); ?>
				<div id="txtHint">
					<select name="kab_id" id="kab_id" style="width:110px; ">
					<option value="0">Select</option>
					</select>
				</div>
			</div> 

			<div class="form_row">
				<label class="contact"><strong>Kota:</strong></label>
				<?php echo form_error('kota', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="kota" value="<?php echo set_value('kota'); ?>">
			</div> 

			<div class="form_row">
				<label class="contact"><strong>Kode Pos:</strong></label>
				<?php echo form_error('kodepos', '<div class="error">', '</div>'); ?>
				<input type="text" class="contact_input" name="kodepos" value="<?php echo set_value('kodepos'); ?>">
			</div> 

			<div class="form_row">
				<label class="contact"><strong>Logistik:</strong></label>
				<?php echo dropDownLogistic()?>
			</div> 
			
			<div class="form_row">
				<label class="contact"><strong>Rekening Bank:</strong></label>
				<?php echo dropDownBank()?>
			</div> 

			<div class="form_row">
				<label class="contact"><strong></strong></label>
				<img src="<?php echo base_url()?>application/views/php_captcha.php" />
				<p></p>
				<label class="contact"><strong>Masukan Kode:</strong></label>
				<?php echo form_error('number', '<div class="error">', '</div>'); ?>
				<input class="contact_input" name="number" type="text" id="number" />
			</div>

			<div class="form_row">
				<div class="terms">
					<?php echo form_error('terms', '<div class="error">', '</div>'); ?>
					<input type="checkbox" name="terms" />
					I agree to the <a href="#">terms &amp; conditions</a>                        
				</div>
			</div> 
			
			<div class="form_row">
				<input type="submit" class="register" value="register" />
			</div>   
		</form>     
	</div>           
</div>	